import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'gather_adjustment' })
export default class GatherAdjustment extends BaseEntity {
  @Column({ type: 'varchar', length: 250, name: 'machine_code', comment: '设备编码' })
  @ApiProperty()
  machineCode: string;

  @Column({
    type: 'varchar',
    length: 250,
    name: 'adjustment_process_code',
    comment: '流程编码',
  })
  @ApiProperty()
  adjustmentProcessCode: string;

  @Column({
    type: 'varchar',
    length: 250,
    name: 'machine_unit_code',
    comment: '单元配置编码',
    nullable: true,
  })
  @ApiProperty()
  machineUnitCode: string;

  @Column({ type: 'varchar', nullable: true, comment: '备注' })
  @ApiProperty()
  remark: string;
}
